<#assign module="marketing"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datepicker/datepicker.css">

</@override>
<@override name="body">
<div class="row">
	<div class="col-xs-13">
		<div class="col-md-2">
			<ul class="list-group">
	        	<li class="list-group-item"><a  href="${ctx}/activitymanage/activitymanage">活动信息管理</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=newRegister&type=cash">新注册客户送现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=newRegister&type=coupon">新注册客户送优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=adminGift&type=coupon">手动赠送优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=phoneGift&type=cash">输入手机号领取现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=phoneGift&type=coupon">输入手机号领取优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=shareSuccess&type=cash">分享成功送现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=shareSuccess&type=coupon">分享成功送优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=invite&type=cash">邀请新客户送现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=invite&type=coupon">邀请新客户送优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=orderCompleteTimes&type=cash">完成订单送现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=orderCompleteTimes&type=coupon">完成订单送优惠券</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=recharging&type=cash">充值送现金</a></li>
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=recharging&type=coupon">充值送优惠券</a></li>
				<li class="list-group-item"><a  href="${ctx}/activity/list?event=reviewCoupon&type=coupon">完成订单评价送优惠券</a></li>
				<li class="list-group-item"><a  href="${ctx}/activity/list?event=lineCoupon&type=coupon">城际优惠券</a></li>
				<li class="list-group-item"><a  href="${ctx}/activity/list?event=zhuancheCoupon&type=coupon">快车送优惠券</a></li>
	        	<#--
	        	<li class="list-group-item"><a  href="${ctx}/activity/list?event=firstOrderFree">首单免费</a></li>
	        	-->
		    </ul>
		</div>
		 
		<div class="col-md-10">
		
		    <div class="row">
			 	<div class="col-xs-12">
			 		<button class="pull-right btn btn-primary" onclick="window.location='${ctx}/activity/add?event=${event}&type=${type?if_exists}';"><i class="icon-plus"></i>&nbsp;添加新活动</button>
				</div>
			</div>

						  
			<div class="row margin-top">
				<div class="col-xs-12">
					<input type="hidden" id="event" value="${event}" />
					<input type="hidden" id="type" value="${type?if_exists}" />
					
					<!--列表-->
					<div class="tabta-content">  	
						<table class="table table-condensed table-striped">
							<tbody>
								<#if event=="newRegister">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:80px;'>线路</th>
										<th style='min-width:100px;'>活动对象</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="phoneGift">
									<tr>
										<th style='min-width:80px;'>状态</th>	
										<th style='min-width:100px;'>活动对象</th>
										<th style='min-width:100px;'>活动类型</th>
										<th style='min-width:100px;'>限制领取次数</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="shareSuccess">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="invite">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="orderCompleteTimes">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="firstOrderFree">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="recharging">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
										<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								<#elseif event=="lineCoupon">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th style='min-width:80px;'>线路</th>
										<th style='min-width:100px;'>活动对象</th>
										<th style='min-width:100px;'>活动类型</th>
										<@shiro.isMainCompany>
											<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
                                <#elseif event=="zhuancheCoupon">
                                    <tr>
                                        <th style='min-width:80px;'>状态</th>
                                        <th style='min-width:100px;'>活动对象</th>
                                        <th style='min-width:100px;'>活动类型</th>
                                        <@shiro.isMainCompany>
                                            <th style='min-width:100px;'>所属公司</th>
                                        </@shiro.isMainCompany>
                                        <th style='min-width:120px;'>开始时间</th>
                                        <th style='min-width:120px;'>结束时间</th>
                                        <th style='min-width:80px;'>操作</th>
                                    </tr>
								<#elseif event=="reviewCoupon">
									<tr>
										<th style='min-width:80px;'>状态</th>
										<th  style='min-width:80px;'>评价等级</th>
										<th style='min-width:100px;'>活动对象</th>
										<th style='min-width:100px;'>活动类型</th>
										<th style='min-width:100px;'>活动范围</th>
										<@shiro.isMainCompany>
											<th style='min-width:100px;'>所属公司</th>
										</@shiro.isMainCompany>
										<th style='min-width:120px;'>开始时间</th>
										<th style='min-width:120px;'>结束时间</th>
										<th style='min-width:80px;'>操作</th>
									</tr>
								</#if>
							</tbody>
						</table>
						<br>
						<div style="text-align:center" id="NoData"></div>
						</br>
						<ul class="pagination pull-left pagination-sm pageshow" style="display:none;">
							<li><a></a></li>
						</ul>
						<ul class="pagination pull-left pagination-sm pagedata" style="display:none;">
					    </ul>
					</div>
					<!--列表-->
				</div>
			</div>
			
		</div>
	</div>
</div>

</@override>


<@override name="footer">
<script type="text/javascript">
	var main=false;
	<@shiro.isMainCompany>
		main=true;
	</@shiro.isMainCompany>
</script>
<script src="${ctx}/assets/js/jquery.zclip.min.js"></script>
<script src="${ctx}/assets/js/jquery.paging.min.js"></script>
<script src="${ctx}/assets/js/datepicker.js"></script>
<script src="${ctx}/assets/js/jquery.paging.min.js"></script>
<script src="${ctx}/assets/js/activity/list.js"></script>
</@override>
<@extends name="../layout.ftl"/>
